<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>amd</title>
</head>
<body>
<script src="https://cdn.bootcss.com/require.js/2.3.6/require.min.js"></script>
<script>
    // 异步加载
    requirejs(['main'], (main) => {
        console.log(main)
    });
</script>
</body>
</html>